restore segfault for massimo
authorØyvind Kolås <pippin@gimp.org>
Fri, 8 Sep 2017 16:21:46 +0000 (18:21 +0200)
committerØyvind Kolås <pippin@gimp.org>
Fri, 8 Sep 2017 16:21:46 +0000 (18:21 +0200)
babl/babl-util.c

index 7af13627d2443a625e5883ec0b359e6b41de5ad0..9148aff6f5686ba303796df7a851c6800d648a61 100644 (file)
@@ -91,7 +91,7 @@ babl_rel_avg_error (const double *imgA,
   for (i = 0; i < samples; i++)
     error += fabs (imgA[i] - imgB[i]);
 
-  if (!(error < 0.000001))
+  if (error <= 0.000001)
     error /= samples;
   else
     error = 0.0;